package blackstar.plugin.ui.vo;

/**
 * @author RayWoo (ayufox@gmail.com)
 * 
 */
public class SimpleStatItem
{
	private String className;
	private String methodName;
	private double totalTime;// 总调用时间
	private long totalInvokes;// 总调用次数
	private long[] threadholdCounts;// 阀值总数

	public SimpleStatItem()
	{
	}

	public String getClassSimpeName()
	{
		int index = className.lastIndexOf('.');
		if (index > 0)
		{
			return className.substring(index + 1);
		} else
		{
			return className;
		}
	}

	public String getClassName()
	{
		return className;
	}

	public void setClassName(String className)
	{
		this.className = className;
	}

	public String getMethodName()
	{
		return methodName;
	}

	public void setMethodName(String methodName)
	{
		this.methodName = methodName;
	}

	public double getTotalTime()
	{
		return totalTime;
	}

	public void setTotalTime(double totalTime)
	{
		this.totalTime = totalTime;
	}

	public long getTotalInvokes()
	{
		return totalInvokes;
	}

	public void setTotalInvokes(long totalInvokes)
	{
		this.totalInvokes = totalInvokes;
	}

	public long[] getThreadholdCounts()
	{
		return threadholdCounts;
	}

	public void setThreadholdCounts(long[] threadholdCounts)
	{
		this.threadholdCounts = threadholdCounts;
	}
}
